<% title "#{@user.name}'s Profile" %>

<% content_for_header render :partial => 'profile_sub_navigation' %>

<div id="user-photo">
	<span>New photo</span>
</div>
<table id="user-info">
	<tr>
		<td>Nimi</td><td><%= @user.name %></td>
	</tr>
</table>
<div class="clearfix"></div>

<h4>Logs and Comments</h4>

<div id="comments">
	<%= render :partial => 'comments/comment', :collection => @user.comments %>
</div>

<% unless current_user.id == @user.id %>
	<% form_for :comment, :url => user_comments_path(@user), :html => { :id => 'add_comment' } do |f| %>
	<p><%= f.text_area :body, :rows => 7, :cols => 60 %> <%= f.submit 'Leave a comment' %> private <%= f.check_box :private %></p>
	<% end %>
<% end %>
